namespace Communication
{
    /// <summary>
    /// Contains the memory status of a specific storage.
    /// </summary>
    public class MemoryStatus
    {
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        /// <param name="used">The number of messages in the storage</param>
        /// <param name="total">The total capacity of the storage</param>
        public MemoryStatus(int used, int total)
        {
            Used = used;
            Total = total;
        }

        /// <summary>
        /// Gets the total capacity of the storage.
        /// </summary>
        public int Total { get; private set; }

        /// <summary>
        /// Gets the number of messages in the storage.
        /// </summary>
        public int Used { get; private set; }
    }
}